<?php

abstract class UserProfilesActiveRecord extends CActiveRecord
{
    protected function beforeValidate(){
        if ($this->isNewRecord) {
            $this->user_id = Yii::app()->user->id;
            $this->updated_on = 0;
            $this->lang = 'ok';
            $this->bio = 'bodd.biz';
            $this->dob = 100;
        }
        return parent::beforeValidate();
    }
}

?>
